#include "InputUtils.h"
#include "UnitTest++.h"

TEST(TestModifyName)
{
    const char* fileName = "MyFile";
    const char* fileNameWithExtention = modifyFileName(fileName);
    const char* expected = "MyFile.zip";
    
    CHECK_EQUAL(expected, fileNameWithExtention);
}

TEST(TestShouldModifyNameWithSlash)
{
    const char* fileName = "MyFile";
    const char* fileNameWithSlash = appendSlash(fileName);
    const char* expectedFileName = "MyFile/";
    
    CHECK_EQUAL(expectedFileName,fileNameWithSlash);
}

TEST(TestShouldNotModifyNameWithSlash)
{
    const char* fileName = "MyFile/";
    const char* fileNameWithSlash = appendSlash(fileName);
    const char* expectedFileName = "MyFile/";
    
    CHECK_EQUAL(expectedFileName,fileNameWithSlash);
}